package org.jeecg.modules.system.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: district
 * @Author: jeecg-boot
 * @Date:   2022-12-23
 * @Version: V1.0
 */
@Data
@TableName("district")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="district对象", description="district")
public class District implements Serializable {
    private static final long serialVersionUID = 1L;

	/**区划信息id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "区划信息id")
    private java.lang.Integer id;
	/**父级挂接id*/
	@Excel(name = "父级挂接id", width = 15)
    @ApiModelProperty(value = "父级挂接id")
    private java.lang.Integer pid;
	/**区划编码*/
	@Excel(name = "区划编码", width = 15)
    @ApiModelProperty(value = "区划编码")
    private java.lang.String code;
	/**区划名称*/
	@Excel(name = "区划名称", width = 15)
    @ApiModelProperty(value = "区划名称")
    private java.lang.String name;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private java.util.Date updateTime;
	/**状态 0 正常 -2 删除 -1 停用*/
	@Excel(name = "状态 0 正常 -2 删除 -1 停用", width = 15)
    @ApiModelProperty(value = "状态 0 正常 -2 删除 -1 停用")
    private java.lang.Integer status;
	/**级次id 0:省/自治区/直辖市 1:市级 2:县级*/
	@Excel(name = "级次id 0:省/自治区/直辖市 1:市级 2:县级", width = 15)
    @ApiModelProperty(value = "级次id 0:省/自治区/直辖市 1:市级 2:县级")
    private java.lang.Integer level;
	/**isLeaf*/
	@Excel(name = "isLeaf", width = 15)
    @ApiModelProperty(value = "isLeaf")
    private java.lang.Integer isLeaf;
}
